/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package base;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

/**
 *
 * @author Tue
 */
public class Configuration {
    private Properties properties;
    public Configuration(String propertieFilePath) throws IOException {
        properties = new Properties();
        FileInputStream fis = new FileInputStream(propertieFilePath);
        properties.load(fis);
        fis.close();
    }
    public String getValue(String key){
        return properties.getProperty(key);
    }
    public String getValue(String key, String defaultValue){
        return properties.getProperty(key, defaultValue);
    }
}
